import java.lang.String;

public class LeftShiftTest2 {

  public static void main(String[] args) {
    char[] s = args[0].toCharArray();
    System.out.println(new String(leftshift(s, s.length, 3)));
  }

  public static char[] leftshiftone(char[] s, int n) {
    char t = s[0];
    for (int i = 1; i < n; i++) {
      s[i - 1] = s[i];
    }
    s[n-1] = t;
    return s;
  }

  public static char[] leftshift(char[] s, int n, int m) {
    char[] result = s;
    for (int i = 0; i < m; i++) {
      result = leftshiftone(result, n);
    }
    return result;
  }

}
